package study2018.com.xtianzhuang.www.designPattern.builderPattern;

/**
 * 
 * @ClassName: BuilderPatternDemo
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2018年6月5日 下午3:24:21
 *
 */
public class BuilderPatternDemo {
	/**
	 * 
	 * @Title: main @Description: TODO(这里用一句话描述这个方法的作用) @param @param args 参数 @return void 返回类型 @throws
	 */
	public static void main(String[] args) {
		MealBuilder mealBuilder = new MealBuilder();
		Meal vegMeal = mealBuilder.prepVegMeal();
		System.out.println("Veg Meal");
		vegMeal.showItems();
		System.out.println("Total Cost:" + vegMeal.getCost());
		Meal nonvegMeal = mealBuilder.prepNonVegMeal();
		System.out.println("\n\n Non-Veg Meal");
		nonvegMeal.showItems();
		System.out.println("Total Cost:" + nonvegMeal.getCost());

	}
}
